﻿write '"Hello" -match "[jkl]"'; "Hello" -match "[jkl]"
write '"Hello" -cmatch "hello"'; "Hello" -cmatch "hello"
write '"Hello" -imatch "hello"'; "Hello" -imatch "hello"
write '"Hello" -notmatch "[jkl]"'; "Hello" -notmatch "[jkl]"
write '"Hello" -cnotmatch "[jkl]"'; "Hello" -cnotmatch "[jkl]"
write '"Hello" -inotmatch "[jkl]"'; "Hello" -inotmatch "[jkl]"
write '"Hello" -replace "ello", "i"'; "Hello" -replace "ello", "i"
write '"HEllo" -creplace "ello", "i"'; "HEllo" -creplace "ello", "i"
write '"HEllo" -ireplace "ello", "i"'; "HEllo" -ireplace "ello", "i"

# Using the $matches variable, a hashtable of index/string matches
"abc" -match "(a)(b)(c)"
$matches

# Using named captures
"abc" -match "(?<o1>a)(?<o2>b)(?<o3>c)"
$matches
